|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The generic type of individuals.public interface ISIGA<T extends IIndividual<T>>
Interface for simple interactive genetic algorithms.
Field Summary |
---|
Fields inherited from interface ga.core.GA |
---|
KEY_EVALUATED_INDIVIDUALS_MIN_COUNT, KEY_GENOME_MAX_LENGTH, KEY_GENOME_MIN_LENGTH, KEY_INIT_INDIVIDUAL, KEY_INIT_INDIVIDUAL_PERCENTAGE, KEY_INTERVAL_FITNESS_MAX_WIDTH, KEY_VALIDATION_SPACE |
Method Summary | |
---|---|
void |
exit()
Exits the algorithm and frees resources. |
GAContext |
getContext()
Getter for the GA context. |
ICrossoverOp<T> |
getCrossoverOp()
Getter for the crossover operator. |
int |
getGeneration()
Getter for the current generation. |
IMutationOp<T> |
getMutationOp()
Getter for the mutation operator. |
IPopulation<T> |
getPopulation()
Getter for the population. |
void |
individualEvaluated(T individual)
This will be notified when an evaluator has evaluated the individual. |
void |
init()
Initializes the algorithm and population. |
void |
newIndividualRequested()
This will be notified when a evaluator demands a new individual for evaluation. |
void |
setValidate(boolean validate)
Setter to enable/disable individual validation. |
void |
setValidator(IValidator<T> validator)
Set the individual validator for the algorithm. |
Methods inherited from interface ga.core.GA |
---|
step |
Method Detail |
---|
ICrossoverOp<T> getCrossoverOp()
IMutationOp<T> getMutationOp()
void init()
GA
init
in interface GA<T extends IIndividual<T>>
void newIndividualRequested()
EvaluationListener
newIndividualRequested
in interface EvaluationListener<T extends IIndividual<T>>
void individualEvaluated(T individual)
EvaluationListener
individualEvaluated
in interface EvaluationListener<T extends IIndividual<T>>
individual
- The individual that has been evaluated.void setValidate(boolean validate)
GA
true
and a validator must be set.
setValidate
in interface GA<T extends IIndividual<T>>
validate
- Enable/disable validation.void setValidator(IValidator<T> validator)
GA
null
and validate must have been activated.
setValidator
in interface GA<T extends IIndividual<T>>
validator
- The individual validator.IPopulation<T> getPopulation()
GA
getPopulation
in interface GA<T extends IIndividual<T>>
GAContext getContext()
void exit()
int getGeneration()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |